<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>拖拽对象</title>
    <script src="index.js"></script>
    <style>
        .div1,div2{
            background: #ff5001;
            width: 50px;
            height:50px;
            cursor: move;
        }
    </style>
</head>
<body>
<div class="div1">element1</div>
<div class="div2">element2</div>
<button class="btn1">btn1</button>
<button class="btn2">btn2</button>
</body>
</html>